##temp=[]
##k=1
##for a in l[2]:
##    if len(a)>1:k+=len(a)
##for i in range(k):temp.append(l[2][:])
##
##for i in range(0,len(temp)):
##    k=0
##    for a in temp[i]:
##        ln=len(a)
##        if ln>1:
##            for j in range(0,ln):
##                temp[i+j][k]=a[j]
##        k+=1
##temp=[]
##for ll in l:
##    k=1
##    for a in ll:
##        if len(a)>1:k+=len(a)
##    for i in range(k):temp.append(ll[:])

for i in range(0,len(temp)-1):
    k=0
    for a in temp[i]:
        ln=len(a)
        if ln>1:
            for j in range(0,ln):
                temp[i+j][k]=a[j]
        k+=1